package com.lzp.badminton.service.impl;

import com.lzp.badminton.model.Club;
import com.lzp.badminton.mapper.ClubMapper;
import com.lzp.badminton.service.IClubService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lzp.badminton.vo.ClubUserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2022-02-11
 */
@Service
public class ClubServiceImpl extends ServiceImpl<ClubMapper, Club> implements IClubService {
    @Autowired
    private ClubMapper clubMapper;

    @Override
    public ClubUserVo getClubInfoById(int clubId) {
        ClubUserVo clubList = clubMapper.getClubInfoById(clubId);
        if (clubList != null) {
            return clubList;
        } else {
            return null;
        }
    }


}
